<?php

use App\Http\Controllers\AppointmentController;
use App\Http\Controllers\LeaseRecordController;
use App\Http\Controllers\UserController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\WeddingDressController;

// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
//     return $request->user();
// });

Route::controller(WeddingDressController::class)->prefix('home')->group(function() {
    Route::get('responseWeddingDressInfo','responseWeddingDressInfo');
});

Route::controller(WeddingDressController::class)->prefix('rent')->group(function() {
    Route::get('dropDownOption','dropDownOption');
    Route::get('showImagePrice','showImagePrice');
    Route::post('rentsubmit','rentsubmit');
});

Route::controller(AppointmentController::class)->prefix('appointment')->group(function(){
    Route::post('appointmentsubmit','appointmentsubmit');
    Route::get('showRentRecordInfo','showRentRecordInfo');
    Route::get('updateState','updateState');
});

Route::controller(UserController::class)->prefix('user')->group(function(){
    Route::post('login','login');
});